package com.android.androidbigwork.utils;

import android.util.Log;
import androidx.fragment.app.Fragment;

import java.util.HashMap;
import java.util.Map;

public class SaveActivityUtils {
    public static Map<Integer,Fragment> map = new HashMap<>();

    public static void putFragment(Integer key, Fragment value){
       map.put(key,value);
        Log.d("", "putFragment: 放进去了");
    }

    public static Fragment getFragment(Integer key){
        return map.get(key);
    }
}
